import type { PatientItem } from '@/type/patient'
import request from '@/utils/request'

/**
 * 获取患者（家庭档案）列表
 */
export const getPatientListAPI = () => {
  return request.get<null, PatientItem[]>('/patient/mylist')
}

export const getPatientAPI = (id:string) => {
  return request.get<null, PatientItem>(`/patient/info/${id}`)
}
